package ar.edu.utn.frgp.banco.servlets;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class LoginServlet
 */
public class LoginServlet extends GenericServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public LoginServlet() {
    }

	@Override
	public void realizarAccion(HttpServletRequest req, HttpServletResponse resp)
			throws Exception {
		String username = req.getParameter("username");
		//String password = req.getParameter("password");
		
		req.getSession().setAttribute("logon_user", username);
		req.getRequestDispatcher("index.jsp").forward(req, resp);
	}

}
